</method>
<method name="set_sepolicy_from_commit"
c:identifier="ostree_repo_commit_modifier_set_sepolicy_from_commit"
- throws="1">
+ throws="1"
+ version="2020.4">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
line="4324">In many cases, one wants to create a "derived" commit from base commit.
use gio;
use glib;
+#[cfg(any(feature = "v2020_4", feature = "dox"))]
use glib::object::IsA;
use glib::translate::*;
use glib::GString;
use ostree_sys;
use std::boxed::Box as Box_;
+#[cfg(any(feature = "v2020_4", feature = "dox"))]
use std::ptr;
use Repo;
use RepoCommitFilterResult;
}
}
+ #[cfg(any(feature = "v2020_4", feature = "dox"))]
pub fn set_sepolicy_from_commit<P: IsA<gio::Cancellable>>(&self, repo: &Repo, rev: &str, cancellable: Option<&P>) -> Result<(), glib::Error> {
unsafe {
let mut error = ptr::null_mut();
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
-from gir-files (https://github.com/gtk-rs/gir-files @ 48a4a23+)
+from gir-files (https://github.com/gtk-rs/gir-files @ b1a822b+)
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
-from gir-files (https://github.com/gtk-rs/gir-files @ 48a4a23+)
+from gir-files (https://github.com/gtk-rs/gir-files @ b1a822b+)
#[cfg(any(feature = "v2017_13", feature = "dox"))]
pub fn ostree_repo_commit_modifier_set_devino_cache(modifier: *mut OstreeRepoCommitModifier, cache: *mut OstreeRepoDevInoCache);
pub fn ostree_repo_commit_modifier_set_sepolicy(modifier: *mut OstreeRepoCommitModifier, sepolicy: *mut OstreeSePolicy);
+ #[cfg(any(feature = "v2020_4", feature = "dox"))]
pub fn ostree_repo_commit_modifier_set_sepolicy_from_commit(modifier: *mut OstreeRepoCommitModifier, repo: *mut OstreeRepo, rev: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_repo_commit_modifier_set_xattr_callback(modifier: *mut OstreeRepoCommitModifier, callback: OstreeRepoCommitModifierXattrCallback, destroy: glib::GDestroyNotify, user_data: gpointer);
pub fn ostree_repo_commit_modifier_unref(modifier: *mut OstreeRepoCommitModifier);